<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="">
    <meta name="author" content="">
    <style>
        [v-cloak] {display: none;}
        .item:{ margin-left: 40px;}
    </style>
    <link rel="stylesheet" href="../../../ht-css/umanhouse/css/index.css">
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />

    <title>云采、云筑商品对接</title>
</head>
<body data-id="62">
    <div id="app" v-cloak>
        <el-tabs v-model="activeName" @tab-click="handleClick" v-cloak>
            <el-tab-pane label="无人仓数据同步" name="first">
                <span>
                    <el-button class="powerButton 432" type="primary" v-on:click="synchCategory" v-loading="loadingCategory" >无人仓品类同步</el-button>
                    <el-button class="powerButton 433" type="primary" v-on:click="synchUnit" v-loading="loadingUnit">无人仓单位同步</el-button>
                    <el-button class="powerButton 434" type="primary" v-on:click="synchStock" v-loading="loadingStock">无人仓库存同步</el-button>
                    <el-button class="powerButton 435" type="primary" v-on:click="synchPrice" v-loading="loadingPrice">无人仓价格同步</el-button>
                </span>
            </el-tab-pane>
            <el-tab-pane label="数据导入" name="second" v-cloak>
             <el-upload class="upload-demo"
             :action="uploadCategory()"
             :on-preview="handlePreview" :on-remove="handleRemove"
             :before-remove="beforeRemove" multiple :limit="3" :before-upload="handleBeforeUpload" :on-success="handleSuccess"
             :on-exceed="handleExceed" :file-list="fileList" :auto-upload="true" :data="params" :on-error="handleError"> 
             <el-button size="small" type="primary">品类映射表导入</el-button>
             <div slot="tip" class="el-upload__tip">备注：只能上传xls/xlsx文件，excel第一行为标题，数据信息从第二行开始，且文件中不能有空行并且每一列都不能为空，否则空行之后的数据不能导入</div>
             </el-upload>
             <br/>
             <el-upload class="upload-demo"
             :action="updateUnit()"
             :on-preview="handlePreview" :on-remove="handleRemove"
             :before-remove="beforeRemove" multiple :limit="3" :before-upload="handleBeforeUpload" :on-success="handleSuccess"
             :on-exceed="handleExceed" :file-list="fileList" :auto-upload = "true" :on-error="handleError"> 
             <el-button size="small" type="primary" >单位映射表导入</el-button>
             <div slot="tip" class="el-upload__tip">备注：只能上传xls/xlsx文件，excel第一行为标题，数据信息从第二行开始，且文件中不能有空行并且每一列都不能为空，否则空行之后的数据不能导入</div>
             </el-upload>
             
             <!-- <br/>
             <el-upload class="upload-demo"
             action="../umanhouse/import/warehouse/map"
             :on-preview="handlePreview" :on-remove="handleRemove"
             :before-remove="beforeRemove" multiple :limit="3" :before-upload="handleBeforeUpload" :on-success="handleSuccess"
             :on-exceed="handleExceed" :file-list="fileList" :auto-upload = "true" :on-error="handleError"> 
             <el-button size="small" type="primary" >仓库映射表导入</el-button>
             <div slot="tip" class="el-upload__tip">备注：只能上传xls/xlsx文件，excel第一行为标题，数据信息从第二行开始，且文件中不能有空行并且每一列都不能为空，否则空行之后的数据不能导入</div>
             </el-upload> -->
             <br/>
             <el-upload class="upload-demo"
             :action="updateSku()"
             :on-preview="handlePreview" :on-remove="handleRemove"
             :before-remove="beforeRemove" multiple :limit="3" :before-upload="handleBeforeUpload1" :on-success="handleSuccess1"
             :on-exceed="handleExceed" :file-list="fileList" :auto-upload = "true" :data="params" :on-error="handleError1"> 
             <el-button size="small" type="primary" v-loading="loadingImport" style="width:115px">商品sku导入</el-button>
             <div slot="tip" class="el-upload__tip">备注：只能上传xls/xlsx文件，excel第一行为标题，数据信息从第二行开始，且文件中不能有空行且每一列都不能为空行，否则空行之后的数据不能导入</div>
             </el-upload>
             <br>
                <el-button size="small" type="info" v-on:click="loadFailData" style="width:115px">下载导入失败sku</el-button>
                <div style="font-size:12px;color:#606266;margin-top:7px">备注：表格中如果数据中存在云筑spuId和skuId，则表示更新失败的数据</div>
             <br/>
            </el-tab-pane>
            <el-tab-pane label="无人仓数据及映射数据导出" name="third" v-cloak>
                <el-button type="primary" v-on:click="exportCategory">导出无人仓品类</el-button>
                <el-button type="primary" v-on:click="exportUnit">导出无人仓单位</el-button><p/>
                
                <el-button type="primary" v-on:click="exportYunCaiCategory" >导出云采品类</el-button>
                <el-button type="primary" v-on:click="exportYunCaiUnit" >导出云采单位</el-button>
                <el-button type="primary" v-on:click="exportSku" >导出商品sku</el-button><p/>
                
                <el-button type="primary" v-on:click="exportCategoryMap">导出云采/无人仓品类映射表</el-button>
                <el-button type="primary" v-on:click="exportUnitMap">导出云采/无人仓单位映射表</el-button>
                <el-button type="primary" v-on:click="exportWarehouseMap">导出云采/无人仓仓库映射表</el-button>
            </el-tab-pane>
        </el-tabs>
    </div>
</body>
<!-- import Vue before Element -->
<script src="../../../ht-js/umanhouse/js/vue.js?rev=@@hash"></script>
<!-- import JavaScript -->
<script src="../../../ht-js/umanhouse/js/index.js?rev=@@hash"></script>
<script src="../../../ht-js/umanhouse/js/axios.min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/umanhouse/js/umanhouse.js?rev=@@hash"></script>

<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
</html>